<template>
    <div id="app">
        <h1 class="my-title">{{ message }}</h1>

        <!-- 路由导航链接 -->
        <div>
            <router-link to="/">首页</router-link>
            <span>|</span>
            <router-link to="/about">关于</router-link>
        </div>

        <!-- 路由视图容器 -->
        <router-view></router-view>
    </div>
</template>

<script>
export default {
    data() {
        return {
            message: '你好，Vue！'
        }
    }
}
</script>

<style lang="scss" scoped>
.my-title {
    color: red;
}
</style>